<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>标签管理</title>
    <%@ include file="/WEB-INF/jsp/public/commons.jspf" %>
  </head>
  
  <body>
  	<div id="container">
  		<%-- 头信息 --%>
		<%@include file="/header.jspf" %>
		<div id="wrapper">
			<%-- 主页面信息 --%>
			<div id="content">
				<h1>标签管理</h1><hr/><br/>
					<s:form action="TagAction_save" namespace="/admin" method="post" id="form">
						<p class="contentP">
							标签名：<input name="tag.name" type="text" id="focus_id" class="required"/>
							<input type="submit" value="添加" class="btn"/>
						</p>
					</s:form>
				<br/>
				<hr/><br/>
				
				<!-- 标签列表 -->
				<table id="TabMain">
			    	<thead id="TabHeader"> 
						<tr><td width="10%">编号</td>
								<td width="30%">标签名</td>
								<td width="20%">出现次数</td>
								<td width="25%">创建时间</td>
								<td width="15%">管理</td>
								</tr>
					</thead>
		    		<s:iterator value="tagList" var="tag" status="st">
		    			<tr><td><s:property value="#st.count"/></td>
			    			<td><s:property value="name"/></td>
			    			<td><s:property value="hits"/></td>
			    			<td><s:date name="inDate" format="yyyy-MM-dd HH:mm"/></td>
			    			<td>
			    				<s:a action="TagAction_toEditPage" namespace="/admin"><s:param name="id" value="id"></s:param>[编辑]</s:a>
			    				<s:a action="TagAction_delete" namespace="/admin"><s:param name="id" value="id"></s:param>[删除]</s:a>
			    			</td>
		    			</tr>
		    		</s:iterator>
		    	</table>
				</div>
			<%-- 右侧边栏 --%>
			<div id="sidebar">
				<%@include file="admin_sidebar.jsp" %>
			</div>
		</div>
		
		<%-- 底部信息 --%>
		<%@include file="/footer.jspf" %>
	</div>	
  	
  </body>
</html>
